package com.dstation.service;

import com.dstation.dao.VideoReviewLogInfoMapper;
import com.dstation.domain.VideoReviewLogInfo;
import com.dstation.service.interf.IVideoExamineService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class VideoExamineService implements IVideoExamineService {

    @Autowired
    VideoReviewLogInfoMapper videoReviewLogInfoMapper;

    @Override
    public boolean alterVideoStatusByVideoId(long videoId, boolean isPass) {
        return videoReviewLogInfoMapper.updateVideoStatusByVideoId(videoId, isPass);
    }

    @Override
    public boolean addVideoReviewLogInfo(VideoReviewLogInfo videoReviewLogInfo) {
        return videoReviewLogInfoMapper.insertVideoReviewLogInfo(videoReviewLogInfo);
    }
}
